Release 10.1A: OpenEdge Development:
Progress 4GL Reference


HEX-DECODE function

Converts a character string consisting of an even number of hexadecimal digits (0 through 9 and A through F) into a RAW value.

Syntax

HEX-DECODE( expression ) 

expression

A character expression containing the value you want to convert. If the expression does not contain an even number of hexadecimal digits, or it is the Unknown value (?), the result is the Unknown value (?). If the expression is a zero-length value, the result is a zero-length value.

Example

The following code fragment illustrates how to use the HEX-DECODE function:

DEFINE VARIABLE vRaw as RAW. 
vRaw = HEX-DECODE(HEX-ENCODE(GENERATE-UUID)). 

See also

HEX-ENCODE function


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095